package Day16;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        //FileOutputStream  写出
        FileOutputStream fos = new FileOutputStream("C:\\Java\\1.txt");
        byte[] bytes = {66,67,68,68};
        fos.write(bytes);//创建文档之后写内容
        System.out.println("写出");
        fos.close();
        File file = new File("C:\\Java\\1.txt");
        boolean b = file.delete();
        System.out.println(b);
    }
}
